package com.sea.physical.service;

import com.sea.physical.entity.Freight;
import org.springframework.web.multipart.MultipartFile;

import java.util.HashMap;
import java.util.List;

public interface FreightService {
    /**
     * 多条件搜索
     * @param freight
     * @return
     */
    List<Freight>findByCnd(Freight freight);
    /**
     * 新增
     * @param freight
     * @return
     */
    int save(Freight freight);

    /**
     * 删除指定
     * @param id
     * @return
     */
    int delete(Integer id);
    /**
     * 查询指定
     * @param id
     * @return
     */
    Freight findById(Integer id);

    /**
     * 更新
     * @param freight
     * @return
     */
    int usave(Freight freight);
    /**
     * 查询运费
     * @param freight
     * @return
     */
    Freight findFreight(Freight freight);
}
